﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/template/Administrador.Master" CodeBehind="Index.aspx.cs" Inherits="Proyecta.Categorias.index" %>

<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="BodyContent">

<div class="crumbs">
<ul id="breadcrumbs" class="breadcrumb"> 
<li><a href="../Dashboard/Index.aspx">Dashboard</a></li>
<li><a href="Index.aspx">Categorias</a></li>
	
</ul>			        
</div>

<div class="divider">&nbsp;</div>
<h5 class="widget-name"><i class="icon-align-justify"></i>Listado de Categorias</h5>
<!-- Menu Header -->
<div class="align-left">
    <asp:HyperLink ID="btnNuevo" CssClass="btn btn-primary" runat="server" 
        NavigateUrl="Categoria.aspx?accion=NUEVO">Nuevo</asp:HyperLink>	
</div>
<!-- Menu Header -->           
<div class="divider">&nbsp;
<asp:GridView ID="GridView2" runat="server" 
CssClass="table table-bordered table-striped" AutoGenerateColumns="False">
<Columns>
<asp:BoundField DataField="idCategoria" HeaderText="#">
    <ItemStyle Width="5%" />
    </asp:BoundField>
<asp:BoundField DataField="Categoria" HeaderText="Categoria" />
<asp:HyperLinkField ControlStyle-CssClass="btn btn-info" DataNavigateUrlFields="IdCategoria" 
    DataNavigateUrlFormatString="Categoria.aspx?id={0}&accion=EDITAR" 
    Text="Editar" >
<ControlStyle CssClass="btn btn-info"></ControlStyle>
    <ItemStyle Width="5%" />
    </asp:HyperLinkField>
<asp:HyperLinkField ControlStyle-CssClass="btn btn-danger" DataNavigateUrlFields="IdCategoria" 
    DataNavigateUrlFormatString="Categoria.aspx?id={0}&accion=ELIMINAR" 
    Text="Eliminar" >
<ControlStyle CssClass="btn btn-danger"></ControlStyle>
    <ItemStyle Width="5%" />
    </asp:HyperLinkField>
</Columns>
</asp:GridView>
</div>

</asp:Content>